package com.glsc.ngateway.opmanage.event.vo;

import org.springframework.context.ApplicationEvent;


public class TradeSeatApplicationEvent extends ApplicationEvent {
    private static final long serialVersionUID = -1178120391992511310L;

    private String beforeState;
    private String afterState;
    private String tradeSeatCode;
    private String beginDate;
    private String endDate;
    private String beginDate2;

    public TradeSeatApplicationEvent(Object source) {
        super(source);
    }

    public static TradeSeatApplicationEvent convert(String beforeState, String afterState, String tradeSeatCode, String beginDate, String endDate, String beginDate2) {
        TradeSeatApplicationEvent tradeSeatApplicationEvent = new TradeSeatApplicationEvent(beforeState);
        tradeSeatApplicationEvent.setBeforeState(beforeState);
        tradeSeatApplicationEvent.setAfterState(afterState);
        tradeSeatApplicationEvent.setTradeSeatCode(tradeSeatCode);
        tradeSeatApplicationEvent.setBeginDate(beginDate);
        tradeSeatApplicationEvent.setEndDate(endDate);
        tradeSeatApplicationEvent.setBeginDate2(beginDate2);
        return tradeSeatApplicationEvent;
    }

    public String getBeginDate2() {
        return beginDate2;
    }

    public void setBeginDate2(String beginDate2) {
        this.beginDate2 = beginDate2;
    }

    public String getBeforeState() {
        return beforeState;
    }

    public void setBeforeState(String beforeState) {
        this.beforeState = beforeState;
    }

    public String getAfterState() {
        return afterState;
    }

    public void setAfterState(String afterState) {
        this.afterState = afterState;
    }

    public String getTradeSeatCode() {
        return tradeSeatCode;
    }

    public void setTradeSeatCode(String tradeSeatCode) {
        this.tradeSeatCode = tradeSeatCode;
    }

    public String getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(String beginDate) {
        this.beginDate = beginDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }
}
